﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.ServiceProcess;
using System.Text;

using System;
using System.Collections;
using System.Configuration.Install;
using System.ServiceProcess;
using System.ComponentModel;


namespace Baggr.Agent
{
    [RunInstaller(true)]
    public class ServiceInstaller
        : Installer
    {
        public ServiceInstaller()
        {
            var processInstaller = new ServiceProcessInstaller
            {
                Account = ServiceAccount.NetworkService,
                Username = null,
                Password = null
            };

            var serviceInstaller = new System.ServiceProcess.ServiceInstaller
            {
                ServiceName = "Baggr.Agent",
                StartType = ServiceStartMode.Manual
            };
            Installers.Add(processInstaller);
            Installers.Add(serviceInstaller);
        }
    }
}
